//
//  Qb_DetailsViewController.m
//  Cd_Qb
//
//  Created by mac on 2018/3/14.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "Qb_DetailsViewController.h"

#import "Qb_DetailsViewTableViewCell.h"

@interface Qb_DetailsViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView *DetailstableView;
@end

@implementation Qb_DetailsViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
    self.tabBarController.tabBar.hidden = YES;
    self.title = @"提现明细";
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.DetailstableView];
    // Do any additional setup after loading the view.
}

#pragma mark --UITableViewDelegate&&UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    Qb_DetailsViewTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    [cell loadData:@[]];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 210*AdaptiveScale_W;
}

-(UITableView *)DetailstableView{
    if (!_DetailstableView) {
        _DetailstableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
        _DetailstableView.backgroundColor = [UIColor whiteColor];
        _DetailstableView.delegate = self;
        _DetailstableView.dataSource = self;
        _DetailstableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];
        _DetailstableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];
        _DetailstableView.showsVerticalScrollIndicator = NO;
//        _SharedtableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        [_DetailstableView registerNib:[UINib nibWithNibName:@"Qb_DetailsViewTableViewCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    }
    return _DetailstableView;
}

@end
